<template>
  <div class="footer">
    <h1>我是footer子组件</h1>
    <button @click="$emit('money', '1000000000000000')">给父亲送一亿元</button>
  </div>
</template>

<script>
export default {
  mounted() {
      this.$bus.$on('homes',(params)=>[
          console.log(params)
      ])
  },
};
</script>

<style scoped>
.footer {
  width: 400px;
  height: 200px;
  background: red;
  margin: 50px 0px;
}
</style>